//
//  RestaurantParser.h
//  RegBars
//
//  Created by Huu Nhat on 7/27/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Restaurant.h"

@protocol RestaurantParserDelegate <NSObject>
- (void)didEndGetRestaurantForDate:(NSString*)keyDate restaurantArray:(NSArray *)Array;
@end

@interface RestaurantParser : NSObject <NSXMLParserDelegate>{
	NSObject <RestaurantParserDelegate>* delegate;
	NSString *date;
    NSMutableData *resultData;
    NSURLConnection *theConnection;
}

@property (nonatomic, retain) NSObject <RestaurantParserDelegate>* delegate;
@property (nonatomic, retain) NSMutableData *resultData;

- (void)getRestaurants:(NSString *)url withDelegate:(id)aDelegate;

@end
